package com.tanhua.api.mongo;

import com.tanhua.domain.mongo.Publish;
import com.tanhua.domain.vo.PageBeanVo;

public interface PublishApi {

    public String save(Publish publish);

    PageBeanVo findMyPublish(Integer page, Integer pagesize, long userId);

    PageBeanVo findFriendsInfo(Integer page, Integer pagesize, Long id);

    PageBeanVo findRecommendInfo(Integer page, Integer pagesize, Long id);

    Publish findById(String publishId);

    PageBeanVo messages(Integer page, Integer pagesize, Long uid, Integer state);

    void updateState(String publishId, Integer state);

    Publish findPid(long parseLong);
}
